package com.matt.repository.nursery;

import com.matt.domain.nursery.NurseryScheduleCheck;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;
import java.util.List;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/12/04
 * *******************************
 */
public interface NurseryScheduleCheckRepository extends JpaRepository<NurseryScheduleCheck, String>, JpaSpecificationExecutor<NurseryScheduleCheck> {

    NurseryScheduleCheck findByClassesIdAndBeginDateAndEndDate(String classesId, Date beginDate, Date endDate);

    List<NurseryScheduleCheck> findByStatus(Integer status);

}
